/**
 * 资源权限节点管理
 */

Ext.namespace('system.AclConfigEntry');
system.AclConfigEntry.fields=[];
system.AclConfigEntry.className="com.wef.system.entity.AclConfigEntry";	
var length=0;

length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="aclConfigEntryId";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=50;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=false; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="aclModuleCode";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=5;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=false; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="propertyName";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=200;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=true; 
system.AclConfigEntry.fields[length].allowNull=false; 
system.AclConfigEntry.fields[length].validators={maxLength : 100};
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=true; 
system.AclConfigEntry.fields[length].displayInList=true; 
system.AclConfigEntry.fields[length].displayInQuery=true; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="referencePropertyName";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="selectDialogClassName";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=20;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="active";
system.AclConfigEntry.fields[length].dataType="Boolean";
system.AclConfigEntry.fields[length].length=1;  
system.AclConfigEntry.fields[length].scale=0; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="createdByUser";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="createdDtmLoc";
system.AclConfigEntry.fields[length].dataType="java.util.Date";
system.AclConfigEntry.fields[length].length=-1;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="createdTimeZone";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="updatedByUser";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="updatedDtmLoc";
system.AclConfigEntry.fields[length].dataType="java.util.Date";
system.AclConfigEntry.fields[length].length=-1;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="updatedTimeZone";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="recordVersion";
system.AclConfigEntry.fields[length].dataType="Long";
system.AclConfigEntry.fields[length].length=10;  
system.AclConfigEntry.fields[length].scale=0; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=false; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


length=system.AclConfigEntry.fields.length;
system.AclConfigEntry.fields[length]={};
system.AclConfigEntry.fields[length].fieldName="principalGroupCode";
system.AclConfigEntry.fields[length].dataType="String";
system.AclConfigEntry.fields[length].length=50;  
system.AclConfigEntry.fields[length].scale=-1; 
system.AclConfigEntry.fields[length].allowEdit=false; 
system.AclConfigEntry.fields[length].allowNull=true; 
system.AclConfigEntry.fields[length].defaultValue=""; 
system.AclConfigEntry.fields[length].displayInForm=false; 
system.AclConfigEntry.fields[length].displayInList=false; 
system.AclConfigEntry.fields[length].displayInQuery=false; 


AclConfigEntryManager = function(){
	this.doLayout();
	this.cm.setColumnWidth(this.cm.findColumnIndex('propertyName'), 250);
};

Ext.extend(AclConfigEntryManager, Gfa.view.BaseSingleView, {
	initData : function(){
		this.entityConfig = system.AclConfigEntry;
		this.dwrService = AclConfigEntryService;
		this.dwrMethod = 'saveOrUpdateAclConfigEntrys';
		this.popupWidth = 550;
		this.popupHeight = 120;
	},

	buildEditComposite : function(){
		return Gfa.FormHelper.buildEditForm(this.entityConfig, this);
	}
});

Ext.onReady(function(){
	new AclConfigEntryManager();
});